﻿<UserControl x:Class="Microsoft.PowerShell.CmdletManagement.PsSpecHistoryControl"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="clr-namespace:Microsoft.PowerShell.CmdletManagement"
    x:Name="root" >
    <StackPanel>
        <GroupBox Header="Change Record">		        
            <Grid>
                <Grid.RowDefinitions>
                    <RowDefinition />
                    <RowDefinition />
					<RowDefinition />
                </Grid.RowDefinitions>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition />
                    <ColumnDefinition />	
					<ColumnDefinition />				
                </Grid.ColumnDefinitions>
			<local:FreeTextExtendedTextBlock x:Name="Action" Label="Type Of Action"
                                                HelpText="Type of change"                                                
												MinLines="1"
												Value="{Binding Path=Action, Mode=TwoWay}"
												Grid.Row="0" Grid.Column="0"
                                                />								
			<local:FreeTextExtendedTextBlock x:Name="LastUpdated" Label="Last Updated"
                                                HelpText="Last updated"                                                
												MinLines="1"
												Value="{Binding Path=LastUpdated, Mode=TwoWay}"
												Grid.Row="0" Grid.Column="1"												 
                                                />
			<local:FreeTextExtendedTextBlock x:Name="ChangedBy" Label="Changed By"
                                                HelpText="Changed by"                                                
												MinLines="1"
												Value="{Binding Path=ChangedBy, Mode=TwoWay}"
												Grid.Row="0" Grid.Column="2"
                                                />									
			<local:FreeTextExtendedTextBlock x:Name="CmdletName" Label="Cmdlet Name"
                                                HelpText="If no cmdlet name is specified then this change is project wide."                                                
												MinLines="1"
												Value="{Binding Path=CmdletName, Mode=TwoWay}"
												Grid.Row="1" Grid.Column="0"
                                                />	
			<local:FreeTextExtendedTextBlock x:Name="ParameterName" Label="Parameter Name"
                                                HelpText="If no parameter name is specified then this change is project or cmdlet wide."                                                
												MinLines="1"
												Value="{Binding Path=ParameterName, Mode=TwoWay}"
												Grid.Row="1" Grid.Column="1"
                                                />															              
			<local:FreeTextExtendedTextBlock x:Name="PropertyName" Label="Property Name"
                                                HelpText="the property this change applies to."                                                
												MinLines="1"
												Value="{Binding Path=PropertyName, Mode=TwoWay}"
												Grid.Row="1" Grid.Column="2"
                                                />		
            
            
            <local:FreeTextExtendedTextBlock x:Name="OldValue" Label="Old Value"
                                                HelpText="Previous value before the change"
                                                Value="{Binding Path=OldValue, Mode=TwoWay}"
												MinLines="5"
												Grid.Row ="2" Grid.Column ="0" Grid.ColumnSpan ="1"
                                                />
            <local:FreeTextExtendedTextBlock x:Name="NewValue" Label="New Value"
                                                HelpText="New value after the change."
                                                Value="{Binding Path=NewValue, Mode=TwoWay}"
												MinLines="5"
												Grid.Row ="2" Grid.Column ="1" Grid.ColumnSpan ="2"
                                                />
            
			</Grid>
        </GroupBox>
    </StackPanel>
</UserControl>
